package br.jcrsistemas.database;

import br.jcrsistemas.util.Configuracoes;

public class ConexaoFactory {
	public static Conexao getConnectionFactory() {
		switch ( Configuracoes.getTipoBanco() ) {
		case POSTGRESQL:
			return new ConexaoPostgres();
		case MYSQL5:
			return new ConexaoMySQL5();
		default:
			return null;
		}
	}

}
